﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using NHibernate;
using FluentNHibernate.Data;

namespace BankCreditPortfolio.DAL.Entities
{
    public class OrderStatus
    {
        public virtual int OrderStatusId { get; set; }
        public virtual string Status { get; set; }
    }

    public class OrderStatusMap : ClassMap<OrderStatus>
    {
        public OrderStatusMap()
        {
            Id(x => x.OrderStatusId).GeneratedBy.HiLo("orderstatus");
            Id(x => x.OrderStatusId).Unique();
            Map(x => x.Status);
            Table("OrderStatus");
        }
    }
}
